#define   _CRT_SECURE_NO_WARNINGS  1
#include<stdio.h>
void cheng(int n)
{
	int i, j;
	for (i = 1; i <= n; i++)
	{
		for (j = 1; j <= i; j++)
			printf("%2d * %2d = %2d ", j, i, i * j);
			printf("\n");

	}
}
int main()
{
	
	int n;
	scanf("%d", &n);
	cheng(n);
	return 0;
}